﻿using CHSystemApi.Framework.Extension;
using System;
using System.Collections.Generic;
using System.Text;

namespace CHSystemApi.Framework.Base
{
    /// <summary>
    /// 自定义响应基类
    /// </summary>
    public class BaseResponse
    {
        /// <summary>
        /// 状态码
        /// </summary>
        public StatusCode code { get; set; }

        /// <summary>
        /// 消息
        /// </summary>
        public string msg { get; set; }

        /// <summary>
        /// 是否成功
        /// </summary>
        public bool success { get; set; }
    }

    public class BaseResponse<T> : BaseResponse
    {
        /// <summary>
        /// 数据
        /// </summary>
        public T data { get; set; }
    }
}
